package com.ysl.fairy_could_class.domain;

import java.util.Date;

public class Banner {

    private int id;
    private String title;
    private String pic;
    private String targetUrl;
    private int sort;
    private String status;
    private Date createTime;
    private Date updateTime;

    //生成的get和set方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getTargetUrl() {
        return targetUrl;
    }

    public void setTargetUrl(String targetUrl) {
        this.targetUrl = targetUrl;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    //生成toString方法
    @Override
    public String toString() {
        return "ResShop{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", pic='" + pic + '\'' +
                ", targetUrl='" + targetUrl + '\'' +
                ", sort=" + sort +
                ", status='" + status + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
    //生成构造函数
    public Banner(int id, String title, String pic, String targetUrl, int sort, String status, Date createTime, Date updateTime) {
        this.id = id;
        this.title = title;
        this.pic = pic;
        this.targetUrl = targetUrl;
        this.sort = sort;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
